package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdCategoryFoodEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdCategoryFoodCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdCategoryFoodUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdCategoryFoodSearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdCategoryFoodOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdCategoryFoodResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdCategoryFoodRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdCategoryFoodConverter;
import com.lion.ball.modules.orderfood.service.def.OfdCategoryFoodService;
import com.lion.ball.modules.orderfood.web.api.OfdCategoryFoodApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 类别食品关联 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/category/food")
public class OfdCategoryFoodController implements OfdCategoryFoodApi, BaseCrudController<
        OfdCategoryFoodEntity,
        OfdCategoryFoodCreateParam,
        OfdCategoryFoodUpdateParam,
        OfdCategoryFoodSearchParam,
        OfdCategoryFoodOrderParam,
        OfdCategoryFoodResult,
        OfdCategoryFoodRepository,
        OfdCategoryFoodConverter,
        OfdCategoryFoodService
        > {

    @Autowired
    OfdCategoryFoodService ofdCategoryFoodService;

    @Override
    public OfdCategoryFoodService getService() {
        return ofdCategoryFoodService;
    }
}